package com.lt.contract.service.impl;

import com.lt.contract.bean.DWA_ECM_CONTRACT_DETAIL;
import com.lt.contract.dao.DWA_ECM_CONTRACT_DETAILMapper;
import com.lt.contract.dao.NM_DWA_ECM_CONTRACT_DETAILMapper;
import com.lt.contract.service.DWA_Contract_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DWA_Contract_ServiceImpl implements DWA_Contract_Service {
    //合同明细
    @Autowired
    NM_DWA_ECM_CONTRACT_DETAILMapper dwaEcmContractDetailMapper;

    @Override
    public List<DWA_ECM_CONTRACT_DETAIL> getContractList(Map<String, Object> map) throws Exception {
        return dwaEcmContractDetailMapper.getContractList(map);
    }

    @Override
    public List<DWA_ECM_CONTRACT_DETAIL> getContractImportantList(Map<String, Object> map) throws Exception {
        return dwaEcmContractDetailMapper.getContractImportantList(map);
    }

    public Long getContractListCount(Map<String, Object> map) throws Exception{
        return dwaEcmContractDetailMapper.getContractListCount(map);
    }
}
